package com.gccloud.design.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassName : ProcessdefineEntity
 * @Author : sulei
 * @Date : 2020/11/23 17:33
 * @Description :
 */
@Data
@Accessors(chain = true)
@TableName("wf_processdefine")
@ApiModel
@ToString(callSuper = true)
public class ProcessdefineEntity {

    private static final long serialVersionUID = 1L;

    @TableId("processdefid")
    @ApiModelProperty(notes = "流程定义ID")
    private Long processDefId;

    @ApiModelProperty(notes = "流程定义名称")
    @TableField("processdefname")
    private String processDefName;

    @ApiModelProperty(notes = "流程中文名称")
    @TableField("processchname")
    private String processCHName;

    @ApiModelProperty(notes = "版本号")
    @TableField("versionsign")
    private String versionSign;

    @ApiModelProperty(notes = "流程状态")
    @TableField("currentstate")
    private Integer currentState;

    @ApiModelProperty(notes = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(notes = "流程时限")
    @TableField("limittime")
    private Integer limitTime;

    @ApiModelProperty(notes = "流程定义内容")
    @TableField("processdefcontent")
    private String processDefContent;

    @ApiModelProperty(notes = "服务编排CFS、RFS、RES的api名称")
    @TableField("apiname")
    private String apiName;

    @ApiModelProperty(notes = "服务编码CFS、RFS、RES的api编码")
    @TableField("apicode")
    private String apiCode;

    @ApiModelProperty(notes = "服务类别CFS、RFS、RES,不包含原子能力服务")
    @TableField("apiclass")
    private String apiClass;

    @TableField(
            fill = FieldFill.INSERT,
            updateStrategy = FieldStrategy.NEVER
    )
    @ApiModelProperty(
            notes = "所属租户ID"
    )
    private String tenantId;
    @TableField(
            fill = FieldFill.INSERT,
            updateStrategy = FieldStrategy.NEVER
    )
    @ApiModelProperty(
            notes = "所属机构ID"
    )
    private String orgId;
    @TableField(
            fill = FieldFill.INSERT,
            updateStrategy = FieldStrategy.NEVER
    )
    @ApiModelProperty(
            notes = "创建用户ID"
    )
    private String createBy;
    @TableField(
            fill = FieldFill.INSERT,
            updateStrategy = FieldStrategy.NEVER
    )
    @ApiModelProperty(
            notes = "创建时间"
    )
    @JsonFormat(
            shape = JsonFormat.Shape.STRING,
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createDate;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    @ApiModelProperty(
            notes = "更新用户ID"
    )
    private String updateBy;
    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    @ApiModelProperty(
            notes = "更新时间"
    )
    @JsonFormat(
            shape = JsonFormat.Shape.STRING,
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date updateDate;
    @TableLogic(
            delval = "1",
            value = "0"
    )
    @ApiModelProperty(
            notes = "删除标识(0：正常，1：删除)",
            hidden = true
    )
    private Integer delFlag = 0;

}
